<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>AI代码审查：让Deepseek成为你的代码守护者</title>
    <link href="https://cdn.staticfile.org/font-awesome/6.4.0/css/all.min.css" rel="stylesheet">
    <link href="https://cdn.staticfile.org/tailwindcss/2.2.19/tailwind.min.css" rel="stylesheet">
    <link href="https://fonts.googleapis.com/css2?family=Noto+Serif+SC:wght@400;500;600;700&family=Noto+Sans+SC:wght@300;400;500;700&display=swap" rel="stylesheet">
    <script src="https://cdn.jsdelivr.net/npm/mermaid@latest/dist/mermaid.min.js"></script>
    <style>
        body {
            font-family: 'Noto Sans SC', Tahoma, Arial, Roboto, "Droid Sans", "Helvetica Neue", "Droid Sans Fallback", "Heiti SC", "Hiragino Sans GB", Simsun, sans-serif;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            min-height: 100vh;
        }
        
        /* 首字下沉效果 */
        .drop-cap::first-letter {
            float: left;
            font-size: 4rem;
            line-height: 3rem;
            padding-right: 0.5rem;
            margin-top: 0.5rem;
            font-weight: 700;
            color: #667eea;
            font-family: 'Noto Serif SC', serif;
        }
        
        /* 代码块美化 */
        pre {
            background: #1e1e1e;
            color: #d4d4d4;
            padding: 1.5rem;
            border-radius: 0.75rem;
            overflow-x: auto;
            position: relative;
            box-shadow: 0 10px 30px rgba(0,0,0,0.2);
        }
        
        pre::before {
            content: attr(data-language);
            position: absolute;
            top: 0.5rem;
            right: 1rem;
            font-size: 0.75rem;
            color: #888;
            text-transform: uppercase;
            letter-spacing: 0.1em;
        }
        
        /* 卡片悬停效果 */
        .hover-card {
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        }
        
        .hover-card:hover {
            transform: translateY(-4px);
            box-shadow: 0 20px 40px rgba(0,0,0,0.15);
        }
        
        /* 渐变文字 */
        .gradient-text {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }
        
        /* 动画效果 */
        @keyframes fadeInUp {
            from {
                opacity: 0;
                transform: translateY(30px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }
        
        .animate-fadeInUp {
            animation: fadeInUp 0.8s ease-out;
        }
        
        /* 表格美化 */
        .custom-table {
            background: white;
            border-radius: 1rem;
            overflow: hidden;
            box-shadow: 0 10px 30px rgba(0,0,0,0.1);
        }
        
        .custom-table th {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
            font-weight: 600;
            padding: 1rem;
            text-align: left;
        }
        
        .custom-table td {
            padding: 1rem;
            border-bottom: 1px solid #f3f4f6;
        }
        
        .custom-table tr:hover {
            background: #f9fafb;
        }
        
        /* 图标装饰 */
        .icon-decoration {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 3rem;
            height: 3rem;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            border-radius: 50%;
            color: white;
            margin-right: 1rem;
            flex-shrink: 0;
        }
        
        /* Mermaid 图表样式 */
        .mermaid {
            display: flex;
            justify-content: center;
            margin: 2rem 0;
        }
    </style>
</head>
<body>
    <!-- Hero 区域 -->
    <section class="relative overflow-hidden">
        <div class="absolute inset-0 bg-gradient-to-br from-purple-600 via-indigo-600 to-blue-600"></div>
        <div class="absolute inset-0 bg-black opacity-10"></div>
        <div class="relative container mx-auto px-6 py-24 text-center">
            <div class="animate-fadeInUp">
                <h1 class="text-5xl md:text-7xl font-bold text-white mb-6">
                    AI代码审查
                </h1>
                <p class="text-2xl md:text-3xl text-purple-100 mb-8">
                    让Deepseek成为你的代码守护者
                </p>
                <div class="flex justify-center space-x-4 text-white">
                    <div class="flex items-center">
                        <i class="fas fa-shield-alt mr-2"></i>
                        <span>智能防护</span>
                    </div>
                    <div class="flex items-center">
                        <i class="fas fa-bolt mr-2"></i>
                        <span>实时检测</span>
                    </div>
                    <div class="flex items-center">
                        <i class="fas fa-chart-line mr-2"></i>
                        <span>效率提升</span>
                    </div>
                </div>
            </div>
        </div>
        <div class="absolute bottom-0 left-0 right-0">
            <svg viewBox="0 0 1440 120" fill="none" xmlns="http://www.w3.org/2000/svg">
                <path d="M0 120L60 110C120 100 240 80 360 70C480 60 600 60 720 65C840 70 960 80 1080 85C1200 90 1320 90 1380 90L1440 90V120H1380C1320 120 1200 120 1080 120C960 120 840 120 720 120C600 120 480 120 360 120C240 120 120 120 60 120H0V120Z" fill="white"/>
            </svg>
        </div>
    </section>

    <!-- 主要内容区 -->
    <main class="bg-white">
        <div class="container mx-auto px-6 py-16 max-w-5xl">
            
            <!-- 第一部分：为什么需要AI代码审查 -->
            <section class="mb-16 animate-fadeInUp">
                <div class="flex items-center mb-8">
                    <div class="icon-decoration">
                        <i class="fas fa-question-circle text-xl"></i>
                    </div>
                    <h2 class="text-3xl font-bold gradient-text">为什么需要AI代码审查？</h2>
                </div>
                
                <div class="bg-gradient-to-r from-purple-50 to-indigo-50 rounded-2xl p-8 hover-card">
                    <p class="text-lg leading-relaxed text-gray-700 drop-cap">
                        写代码就像做饭，即使是最有经验的厨师（程序员），也难免会忘记关火（资源未释放）、放错调料（逻辑错误）或者切到手（空指针异常）。Deepseek就像一位24小时待命的厨房监理，能帮我们实时发现这些"安全隐患"。
                    </p>
                </div>
                
                <div class="mt-8 bg-white rounded-2xl shadow-lg p-6 hover-card">
                    <img src="https://cdn.nlark.com/yuque/0/2025/png/21449790/1739599101100-28f7dadd-3179-4862-9cb1-e47d88e70c38.png" 
                         alt="AI代码审查概念图" 
                         class="w-full rounded-lg">
                </div>
            </section>

            <!-- 第二部分：环境准备 -->
            <section class="mb-16 animate-fadeInUp">
                <div class="flex items-center mb-8">
                    <div class="icon-decoration">
                        <i class="fas fa-cogs text-xl"></i>
                    </div>
                    <h2 class="text-3xl font-bold gradient-text">环境准备（5分钟搞定）</h2>
                </div>
                
                <div class="grid md:grid-cols-2 gap-6">
                    <div class="bg-white rounded-2xl shadow-lg p-6 hover-card">
                        <h3 class="text-xl font-semibold mb-4 flex items-center">
                            <i class="fas fa-plug text-purple-600 mr-3"></i>
                            安装Deepseek插件
                        </h3>
                        <ul class="space-y-3 text-gray-700">
                            <li class="flex items-start">
                                <i class="fas fa-check-circle text-green-500 mt-1 mr-3"></i>
                                <span>插件市场搜索"Deepseek Code Review"</span>
                            </li>
                            <li class="flex items-start">
                                <i class="fas fa-check-circle text-green-500 mt-1 mr-3"></i>
                                <span>点击安装（就像安装手机APP一样简单）</span>
                            </li>
                        </ul>
                    </div>
                    
                    <div class="bg-white rounded-2xl shadow-lg p-6 hover-card">
                        <h3 class="text-xl font-semibold mb-4 flex items-center">
                            <i class="fas fa-code text-purple-600 mr-3"></i>
                            Java项目配置
                        </h3>
                        <pre data-language="xml" class="text-sm"><code>&lt;dependency&gt;
    &lt;groupId&gt;com.deepseek&lt;/groupId&gt;
    &lt;artifactId&gt;code-analyzer&lt;/artifactId&gt;
    &lt;version&gt;1.3.0&lt;/version&gt;
&lt;/dependency&gt;</code></pre>
                    </div>
                </div>
                
                <div class="mt-6 bg-white rounded-2xl shadow-lg p-6 hover-card">
                    <img src="https://cdn.nlark.com/yuque/0/2025/png/21449790/1739599329584-712b3a0e-ab8e-4494-88cf-ebb432a42331.png" 
                         alt="VSCode插件安装界面" 
                         class="w-full rounded-lg">
                </div>
            </section>

            <!-- 第三部分：真实案例 -->
            <section class="mb-16 animate-fadeInUp">
                <div class="flex items-center mb-8">
                    <div class="icon-decoration">
                        <i class="fas fa-bug text-xl"></i>
                    </div>
                    <h2 class="text-3xl font-bold gradient-text">真实案例：用户管理系统漏洞检测</h2>
                </div>
                
                <div class="space-y-6">
                    <!-- 原始问题代码 -->
                    <div class="bg-red-50 rounded-2xl p-6 border-l-4 border-red-500">
                        <h3 class="text-xl font-semibold mb-4 text-red-700 flex items-center">
                            <i class="fas fa-exclamation-triangle mr-3"></i>
                            原始问题代码
                        </h3>
                        <pre data-language="java"><code>public class UserService {
    // 漏洞1：未处理空指针
    public String getUserRole(String userId) {
        return UserDB.query(userId).getRole();
    }

    // 漏洞2：资源未关闭
    public void exportUsers() {
        FileOutputStream fos = new FileOutputStream("users.csv");
        fos.write(getAllUsers().getBytes());
    }

    // 漏洞3：SQL注入风险
    public void deleteUser(String input) {
        Statement stmt = conn.createStatement();
        stmt.execute("DELETE FROM users WHERE id = " + input);
    }
}</code></pre>
                    </div>
                    
                    <!-- 审查结果展示 -->
                    <div class="bg-white rounded-2xl shadow-lg p-6 hover-card">
                        <h3 class="text-xl font-semibold mb-4 flex items-center">
                            <i class="fas fa-search text-purple-600 mr-3"></i>
                            Deepseek审查结果
                        </h3>
                        <img src="https://cdn.nlark.com/yuque/0/2025/png/21449790/1739599364662-ee0c4406-6f27-4304-b37a-bb6e5d678c2c.png" 
                             alt="Deepseek审查界面" 
                             class="w-full rounded-lg">
                    </div>
                    
                    <!-- 智能修复建议 -->
                    <div class="bg-yellow-50 rounded-2xl p-6 border-l-4 border-yellow-500">
                        <h3 class="text-xl font-semibold mb-4 text-yellow-700 flex items-center">
                            <i class="fas fa-lightbulb mr-3"></i>
                            智能修复建议
                        </h3>
                        <div class="space-y-3">
                            <div class="flex items-start">
                                <span class="bg-yellow-600 text-white rounded-full w-6 h-6 flex items-center justify-center text-sm mr-3 mt-0.5">1</span>
                                <span class="text-gray-700">空指针防护 → 建议添加Optional处理</span>
                            </div>
                            <div class="flex items-start">
                                <span class="bg-yellow-600 text-white